package com.ylc.controller;

import com.ylc.domain.Users;
import com.ylc.service.UsersService;

/**
 * @Author: ylc
 * @Description: 界面层
 * @Date Created in 2022-07-17 15:06
 */
public class UsersController {
    private UsersService usersService;

    // 交给Spring去依赖注入，提供setXXX()接口
    public void setUsersService(UsersService usersService) {
        this.usersService = usersService;
    }

    public int insert(Users user){
        return usersService.insert(user);
    }

}
